<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
    <script>
        $(document).ready(function getCurrentUser(){
            $.get("/user/get",function (res){
                $("#username").html(res);
            })
        })
        function queryMoblie(){
            $.get("/mobile/query",function (res){
                alert(res);
            })
        }
        function querySalary(){
            $.get("/salary/query",function (res){
                alert((res))
            })
        }
    </script>
</head>
<body>
    欢迎登录<div id="username">
        <a href="/logout">登出</a>
        <hr>
        <button onclick="queryMobile()">查看电话号码</button>
        <button onclick="querySalary()">查看薪水</button>
        <hr>
        电话号码服务地址：http://localhost:8081/mobile/query
        <br>
        薪水服务地址： http://localhost:8081/salary/query
    </div>
</body>
</html>
